package com.hsy.boot.service.model;

import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.type.Alias;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 用户表(User)实体类
 *
 * @author makejava
 * @since 2020-03-30 10:43:13
 */
@Setter
@Getter
@Alias("User")
@Table(name = "t_user")
public class User extends BaseModel {
    private static final long serialVersionUID = -18879258970375032L;
    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /**
     * 姓名
     */
    private String userName;
    /**
     * 密码
     */
    private String password;
    /**
     * 性别
     */
    private String gender;
    /**
     * 版本号
     */
    private Long version;
}